<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>用户注册</title>

<link href="css/style.css" rel="stylesheet" type="text/css" />
<script language="javascript">
  function reloadVerifyCode(){    
         var timenow = new Date().getTime();                            
         document.getElementById("safecode").src="<%=request.getContextPath()%>/servlet/ImageServlet?d="+timenow;   
         
  } 
function  insert_me(){
    var username=document.getElementById("username").value;
	var realname=document.getElementById("realname").value;
	var password=document.getElementById("password").value;
	var email=document.getElementById("email").value;
	var id_card=document.getElementById("id_card").value;
	var backup=document.getElementById("backup").value;
	var verifyCode=document.getElementById("verifyCode").value;
	if(username==""){
		window.alert("用户名不得为空!");
		return false;
	}
	if(realname==""){
		window.alert("真实姓名不得为空！");
		return false;
	}
	if(password==""){
		window.alert("密码不得为空！");
		return false;
	}
	if(email==""){
		window.alert("EMAIL不得为空!");
		return false;
	}
	if(id_card==""){
		window.alert("身份证不得为空！");
		return false;
	}
	if(backup==""){
		window.alert("申请理由不得为空！");
		return false;
	}
	if(verifyCode==""){
		window.alert("验证码不得为空！");
		return false;
	}
	var url="<%=request.getContextPath()%>/admin_insert_admin_info_front.do?method=admin_insert_admin_info_front";
	document.getElementById("form1").action=url;
    document.getElementById("form1").submit();
}
</script>
</head>
<body>

<div class="login_box">
<div class="wqo">
<div class="wqo_lefts">
<div class="lff">
<div class="wqo_title"><img src="images/login_03.jpg" alt="" /></div>
 
 <div class="eqb" style="height:800px;">
    <form id="form1" name="form1" method="post" action="">
 <ul><li><h2>用户昵称：</h2><input type="text" name="username" id="username" class="adinput" style="color:#004098" size="50"/></li>
 <li><h2>真实姓名：</h2><input type="text" name="realname" id="realname" class="adinput" style="color:#004098" size="50"/></li>
 <li><h2>用户密码：</h2><input type="password" name="password" id="password" class="adinput" style="color:#004098" size="50"/></li>
 <li><h2>验证邮箱：</h2><input type="text" name="email" id="email" class="adinput" style="color:#004098" size="100"/></li>
 <li><h2>身份证：</h2><input type="text" name="id_card" id="id_card" class="adinput" style="color:#004098" size="100"/></li>
  <li><h2>申请理由：</h2><input type="text" name="backup" id="backup" class="adinput" style="color:#004098"/></li>
 <li><h2>验证码：</h2>
   <input type="text" id="verifyCode" name="verifyCode"   size="6" class="yans"  style="color:#004098"/>  
   <img alt="验证码" id="safecode" src="<%=request.getContextPath()%>/servlet/ImageServlet"/> <a href="javascript:reloadVerifyCode();">看不清楚</a>  
 </li>
 </ul>
  </form>
   </div>
   </div>
   
<div class="lf"><div class="wqo_right"><img src="images/login_05.jpg" alt="" /></div><div class="bs"><a onclick="insert_me()" ><img src="images/login_12-06.jpg" alt="" /></a> <a href="login.jsp"><img src="images/login_16.jpg" alt="" /></a></div></div>

</div>
 





</div>


</div>


</body>
</html>
